import 'package:flutter/material.dart';
import 'package:spring_fairy/pages/diary_editior_page.dart';
import 'package:spring_fairy/pages/settings/mood_type_page.dart';
import 'package:spring_fairy/pages/settings/theme_color_page.dart';

import 'baidu_map.dart';

class SettingsPage extends StatelessWidget {
  const SettingsPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("设置")),
      body: ListView(
        children: [
          ListTile(
            leading: const Icon(Icons.emoji_emotions),
            title: const Text("心情管理"),
            trailing: const Icon(Icons.chevron_right),
            onTap: () {
              Navigator.push(
                context,
                MaterialPageRoute(builder: (_) => const MoodTypePage()),
              );
            },
          ),
          ListTile(
            leading: const Icon(Icons.edit_note),
            title: const Text("日记"),
            trailing: const Icon(Icons.chevron_right),
            onTap: () {
              Navigator.push(
                context,
                MaterialPageRoute(builder: (_) => const DiaryEditorPage()),
              );
            },
          ),
          ListTile(
            leading: const Icon(Icons.color_lens),
            title: const Text("主题颜色"),
            trailing: const Icon(Icons.chevron_right),
            onTap: () async {
              Navigator.push(
                context,
                MaterialPageRoute(builder: (_) =>  ShowListMapPage()),
              );
            },
          ),
        ],
      ),
    );
  }
}
